<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 2018/9/30
 * Time: 10:19
 */

namespace home\modules\user\controllers;


use common\models\db\User;
use yii\web\Controller;

class ProfileController extends Controller
{
    public function actionIndex($id)
    {
        $user = User::findOne($id);
        return $this->render('index', ['user' => $user]);
    }

    public function actionBox($id)
    {
        $user = User::findOne($id);
        return $this->renderPartial('@home/members/wodrow/profile_box/views/box.php', ['user' => $user]);
    }
}